<template>
<div style="line-height: 50px">
  <el-tabs type="border-card">
    <el-tab-pane label="全部订单">
      <el-input
      style="width:200px;margin-right:20px"
      placeholder="搜索订单"
      v-model="input"
      clearable>
    </el-input>
    <el-button plain>查询</el-button>
        <el-table
        :data="tableData"
        style="width: 100%">
        <el-table-column type="expand">
          <template slot-scope="props">
            <el-form label-position="left" inline class="demo-table-expand">
              <el-form-item label="车位名称">
                <span>{{ props.row.name }}</span>
              </el-form-item>
              <el-form-item label="小区名字">
                <span>{{ props.row.shop }}</span>
              </el-form-item>
              <el-form-item label="订单id ID">
                <span>{{ props.row.id }}</span>
              </el-form-item>
              <el-form-item label="车位 ID">
                <span>{{ props.row.shopId }}</span>
              </el-form-item>
              <el-form-item label="车位地区">
                <span>{{ props.row.category }}</span>
              </el-form-item>
              <el-form-item label="车位详细地址">
                <span>{{ props.row.address }}</span>
              </el-form-item>
              <el-form-item label="车位描述">
                <span>{{ props.row.desc }}</span>
              </el-form-item>
            
            </el-form>
            
          </template>
          
        </el-table-column>
        <el-table-column
          label="订单 ID"
          prop="id">
        </el-table-column>
        <el-table-column
          label="车位名称"
          prop="name">
        </el-table-column>
        <el-table-column
          label="描述"
          prop="desc">
        </el-table-column>
          <el-table-column
          fixed="right"
          label="操作"
          width="100">
          <template slot-scope="scope">
            <el-button @click="handleClick(scope.row)" type="text" size="small">删除订单</el-button>
            <el-button type="text" size="small">去评价</el-button>
          </template>
        </el-table-column>
      </el-table>
      <div class="block">
        <span class="demonstration">显示总数</span>
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page.sync="currentPage1"
          :page-size="100"
          layout="total, prev, pager, next"
          :total="1000">
        </el-pagination>
      </div>
    </el-tab-pane>
    <el-tab-pane label="已支付">
      <el-input
    style="width:200px;margin-right:20px"
    placeholder="搜索订单"
    v-model="input"
    clearable>
  </el-input>
  <el-button plain>查询</el-button>
      <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column type="expand">
        <template slot-scope="props">
          <el-form label-position="left" inline class="demo-table-expand">
            <el-form-item label="车位名称">
              <span>{{ props.row.name }}</span>
            </el-form-item>
            <el-form-item label="小区名字">
              <span>{{ props.row.shop }}</span>
            </el-form-item>
            <el-form-item label="订单id ID">
              <span>{{ props.row.id }}</span>
            </el-form-item>
            <el-form-item label="车位 ID">
              <span>{{ props.row.shopId }}</span>
            </el-form-item>
            <el-form-item label="车位地区">
              <span>{{ props.row.category }}</span>
            </el-form-item>
            <el-form-item label="车位详细地址">
              <span>{{ props.row.address }}</span>
            </el-form-item>
            <el-form-item label="车位描述">
              <span>{{ props.row.desc }}</span>
            </el-form-item>
          
          </el-form>
          
        </template>
        
      </el-table-column>
      <el-table-column
        label="订单 ID"
        prop="id">
      </el-table-column>
      <el-table-column
        label="车位名称"
        prop="name">
      </el-table-column>
      <el-table-column
        label="描述"
        prop="desc">
      </el-table-column>
        <el-table-column
        fixed="right"
        label="操作"
        width="100">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">删除订单</el-button>
          <el-button type="text" size="small">去评价</el-button>
        </template>
      </el-table-column>
    </el-table>
    <div class="block">
      <span class="demonstration">显示总数</span>
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage1"
        :page-size="100"
        layout="total, prev, pager, next"
        :total="1000">
      </el-pagination>
    </div>
    </el-tab-pane>
    <el-tab-pane label="未支付">
      <el-input
    style="width:200px;margin-right:20px"
    placeholder="搜索订单"
    v-model="input"
    clearable>
  </el-input>
  <el-button plain>查询</el-button>
      <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column type="expand">
        <template slot-scope="props">
          <el-form label-position="left" inline class="demo-table-expand">
            <el-form-item label="车位名称">
              <span>{{ props.row.name }}</span>
            </el-form-item>
            <el-form-item label="小区名字">
              <span>{{ props.row.shop }}</span>
            </el-form-item>
            <el-form-item label="订单id ID">
              <span>{{ props.row.id }}</span>
            </el-form-item>
            <el-form-item label="车位 ID">
              <span>{{ props.row.shopId }}</span>
            </el-form-item>
            <el-form-item label="车位地区">
              <span>{{ props.row.category }}</span>
            </el-form-item>
            <el-form-item label="车位详细地址">
              <span>{{ props.row.address }}</span>
            </el-form-item>
            <el-form-item label="车位描述">
              <span>{{ props.row.desc }}</span>
            </el-form-item>
          
          </el-form>
          
        </template>
        
      </el-table-column>
      <el-table-column
        label="订单 ID"
        prop="id">
      </el-table-column>
      <el-table-column
        label="车位名称"
        prop="name">
      </el-table-column>
      <el-table-column
        label="描述"
        prop="desc">
      </el-table-column>
        <el-table-column
        fixed="right"
        label="操作"
        width="100">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">删除订单</el-button>
          <el-button type="text" size="small">去评价</el-button>
        </template>
      </el-table-column>
    </el-table>
    <div class="block">
      <span class="demonstration">显示总数</span>
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage1"
        :page-size="100"
        layout="total, prev, pager, next"
        :total="1000">
      </el-pagination>
    </div>
    </el-tab-pane>
    <el-tab-pane label="未评价">
      <el-input
    style="width:200px;margin-right:20px"
    placeholder="搜索订单"
    v-model="input"
    clearable>
  </el-input>
  <el-button plain>查询</el-button>
      <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column type="expand">
        <template slot-scope="props">
          <el-form label-position="left" inline class="demo-table-expand">
            <el-form-item label="车位名称">
              <span>{{ props.row.name }}</span>
            </el-form-item>
            <el-form-item label="小区名字">
              <span>{{ props.row.shop }}</span>
            </el-form-item>
            <el-form-item label="订单id ID">
              <span>{{ props.row.id }}</span>
            </el-form-item>
            <el-form-item label="车位 ID">
              <span>{{ props.row.shopId }}</span>
            </el-form-item>
            <el-form-item label="车位地区">
              <span>{{ props.row.category }}</span>
            </el-form-item>
            <el-form-item label="车位详细地址">
              <span>{{ props.row.address }}</span>
            </el-form-item>
            <el-form-item label="车位描述">
              <span>{{ props.row.desc }}</span>
            </el-form-item>
          
          </el-form>
          
        </template>
        
      </el-table-column>
      <el-table-column
        label="订单 ID"
        prop="id">
      </el-table-column>
      <el-table-column
        label="车位名称"
        prop="name">
      </el-table-column>
      <el-table-column
        label="描述"
        prop="desc">
      </el-table-column>
        <el-table-column
        fixed="right"
        label="操作"
        width="100">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">删除订单</el-button>
          <el-button type="text" size="small">去评价</el-button>
        </template>
      </el-table-column>
    </el-table>
    <div class="block">
      <span class="demonstration">显示总数</span>
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage1"
        :page-size="100"
        layout="total, prev, pager, next"
        :total="1000">
      </el-pagination>
    </div>
    </el-tab-pane>
    <el-tab-pane label="已评价">已评价</el-tab-pane>
  </el-tabs>
  
</div>
  
  
</template>

<style>
  .demo-table-expand {
    font-size: 0;
  }
  .demo-table-expand label {
    width: 90px;
    color: #99a9bf;
  }
  .demo-table-expand .el-form-item {
    margin-right: 0;
    margin-bottom: 0;
    width: 50%;
  }
</style>

<script>
  export default {
      name:"order",
    data() {
      return {
        input: '',
            currentPage1: 5,
        currentPage2: 5,
        currentPage3: 5,
        currentPage4: 4,
        tableData: [{
          id: '12987122',
          name: '云南豪车车库',
          category: '赠送江浙小吃、小吃零食',
          desc: '赠送荷兰优质淡奶，奶香浓而不腻',
          address: '云南市普陀区真北路',
          shop: '王小虎夫妻店',
          shopId: '10333'
        }, {
          id: '12987122',
          name: '云南豪车车库',
          category: '赠送江浙小吃、小吃零食',
          desc: '赠送荷兰优质淡奶，奶香浓而不腻',
          address: '云南市普陀区真北路',
          shop: '王小虎夫妻店',
          shopId: '10333'
        }, {
          id: '12987122',
          name: '云南豪车车库',
          category: '赠送江浙小吃、小吃零食',
          desc: '赠送荷兰优质淡奶，奶香浓而不腻',
          address: '云南市普陀区真北路',
          shop: '王小虎夫妻店',
          shopId: '10333'
        }, {
          id: '12987122',
          name: '云南豪车车库',
          category: '赠送江浙小吃、小吃零食',
          desc: '赠送荷兰优质淡奶，奶香浓而不腻',
          address: '云南市普陀区真北路',
          shop: '王小虎夫妻店',
          shopId: '10333'
        }]
      }
    },
    methods:{
        handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    }
  }
</script>